package com.cdshangpai.photoapp.ui.main;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;

import android.os.Bundle;

import com.cdshangpai.photoapp.PhotoAppBaseActivity;
import com.cdshangpai.photoapp.R;
import com.cdshangpai.photoapp.databinding.ActivityLogBinding;
import com.cdshangpai.photoapp.databinding.ActivityLoveBinding;
import com.cdshangpai.utils.log.LogUtil;

public class LogActivity extends PhotoAppBaseActivity {
    private ActivityLogBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding= DataBindingUtil.setContentView(this,R.layout.activity_log);
        binding.setView(this);
    }

    @Override
    protected void onResume() {
        super.onResume();
        binding.setContent(LogUtil.load());
    }

    public void clean()
    {
        LogUtil.clean();
        binding.setContent("");
    }
}